//
//  AliPayUtils.h
//  UtilsDemo
//
//  Created by wulanzhou on 16/10/9.
//  Copyright © 2016年 wulanzhou. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString *const  kAliPayCallBackNotification;                                  //支付返回通知
typedef void (^AliPayFinishedBlock)(BOOL success,NSString *errCode,NSString *errMsg); //支付成功的回调block

@interface AliPayUtils : NSObject

/**
 *  支付(客户端处理签名)
 *
 *  @param title              商品标题
 *  @param desc               商品描述
 *  @param money              支付金额
 *  @param orderidStr         订单编号
 *  @param notifyURL          回调地址
 *  @param aPayFinishedBlock  支付结果回调
 */
- (void)alixPayWithTitle:(NSString*)title
             productDesc:(NSString*)desc
                   money:(NSString *)moneyStr
             orderNumber:(NSString *)orderidStr
               notifyURL:(NSString *)notifyURL
            payCompleted:(AliPayFinishedBlock)aPayFinishedBlock;

/**
 *  支付(后台处理签名)
 *
 *  @param sign              签名字符串(后台处理返回的签名)
 *  @param aPayFinishedBlock 支付结果回调
 */
- (void)alixPayWithSign:(NSString *)sign
           payCompleted:(AliPayFinishedBlock)aPayFinishedBlock;



@end
